package com.micro.util;


import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;

public class HolidayUtil {
    public static Map holidaymap = new HashMap();

    static {
        holidaymap.put("20190101",2);
        holidaymap.put("20190102",1);
        holidaymap.put("20190103",1);
        holidaymap.put("20190104",1);
        holidaymap.put("20190105",2);
        holidaymap.put("20190106",2);
        holidaymap.put("20190107",1);
        holidaymap.put("20190108",1);
        holidaymap.put("20190109",1);
        holidaymap.put("20190110",1);
        holidaymap.put("20190111",1);
        holidaymap.put("20190112",2);
        holidaymap.put("20190113",2);
        holidaymap.put("20190114",1);
        holidaymap.put("20190115",1);
        holidaymap.put("20190116",1);
        holidaymap.put("20190117",1);
        holidaymap.put("20190118",1);
        holidaymap.put("20190119",2);
        holidaymap.put("20190120",2);
        holidaymap.put("20190121",1);
        holidaymap.put("20190122",1);
        holidaymap.put("20190123",1);
        holidaymap.put("20190124",1);
        holidaymap.put("20190125",1);
        holidaymap.put("20190126",2);
        holidaymap.put("20190127",2);
        holidaymap.put("20190128",1);
        holidaymap.put("20190129",1);
        holidaymap.put("20190130",1);
        holidaymap.put("20190131",1);
        holidaymap.put("20190201",1);
        holidaymap.put("20190202",1);
        holidaymap.put("20190203",1);
        holidaymap.put("20190204",2);
        holidaymap.put("20190205",2);
        holidaymap.put("20190206",2);
        holidaymap.put("20190207",2);
        holidaymap.put("20190208",2);
        holidaymap.put("20190209",2);
        holidaymap.put("20190210",2);
        holidaymap.put("20190211",1);
        holidaymap.put("20190212",1);
        holidaymap.put("20190213",1);
        holidaymap.put("20190214",1);
        holidaymap.put("20190215",1);
        holidaymap.put("20190216",2);
        holidaymap.put("20190217",2);
        holidaymap.put("20190218",1);
        holidaymap.put("20190219",1);
        holidaymap.put("20190220",1);
        holidaymap.put("20190221",1);
        holidaymap.put("20190222",1);
        holidaymap.put("20190223",2);
        holidaymap.put("20190224",2);
        holidaymap.put("20190225",1);
        holidaymap.put("20190226",1);
        holidaymap.put("20190227",1);
        holidaymap.put("20190228",1);
        holidaymap.put("20190301",1);
        holidaymap.put("20190302",2);
        holidaymap.put("20190303",2);
        holidaymap.put("20190304",1);
        holidaymap.put("20190305",1);
        holidaymap.put("20190306",1);
        holidaymap.put("20190307",1);
        holidaymap.put("20190308",1);
        holidaymap.put("20190309",2);
        holidaymap.put("20190310",2);
        holidaymap.put("20190311",1);
        holidaymap.put("20190312",1);
        holidaymap.put("20190313",1);
        holidaymap.put("20190314",1);
        holidaymap.put("20190315",1);
        holidaymap.put("20190316",2);
        holidaymap.put("20190317",2);
        holidaymap.put("20190318",1);
        holidaymap.put("20190319",1);
        holidaymap.put("20190320",1);
        holidaymap.put("20190321",1);
        holidaymap.put("20190322",1);
        holidaymap.put("20190323",2);
        holidaymap.put("20190324",2);
        holidaymap.put("20190325",1);
        holidaymap.put("20190326",1);
        holidaymap.put("20190327",1);
        holidaymap.put("20190328",1);
        holidaymap.put("20190329",1);
        holidaymap.put("20190330",2);
        holidaymap.put("20190331",2);
        holidaymap.put("20190401",1);
        holidaymap.put("20190402",1);
        holidaymap.put("20190403",1);
        holidaymap.put("20190404",1);
        holidaymap.put("20190405",2);
        holidaymap.put("20190406",2);
        holidaymap.put("20190407",2);
        holidaymap.put("20190408",1);
        holidaymap.put("20190409",1);
        holidaymap.put("20190410",1);
        holidaymap.put("20190411",1);
        holidaymap.put("20190412",1);
        holidaymap.put("20190413",2);
        holidaymap.put("20190414",2);
        holidaymap.put("20190415",1);
        holidaymap.put("20190416",1);
        holidaymap.put("20190417",1);
        holidaymap.put("20190418",1);
        holidaymap.put("20190419",1);
        holidaymap.put("20190420",2);
        holidaymap.put("20190421",2);
        holidaymap.put("20190422",1);
        holidaymap.put("20190423",1);
        holidaymap.put("20190424",1);
        holidaymap.put("20190425",1);
        holidaymap.put("20190426",1);
        holidaymap.put("20190427",2);
        holidaymap.put("20190428",1);
        holidaymap.put("20190429",1);
        holidaymap.put("20190430",1);
        holidaymap.put("20190501",2);
        holidaymap.put("20190502",2);
        holidaymap.put("20190503",2);
        holidaymap.put("20190504",2);
        holidaymap.put("20190505",1);
        holidaymap.put("20190506",1);
        holidaymap.put("20190507",1);
        holidaymap.put("20190508",1);
        holidaymap.put("20190509",1);
        holidaymap.put("20190510",1);
        holidaymap.put("20190511",2);
        holidaymap.put("20190512",2);
        holidaymap.put("20190513",1);
        holidaymap.put("20190514",1);
        holidaymap.put("20190515",1);
        holidaymap.put("20190516",1);
        holidaymap.put("20190517",1);
        holidaymap.put("20190518",2);
        holidaymap.put("20190519",2);
        holidaymap.put("20190520",1);
        holidaymap.put("20190521",1);
        holidaymap.put("20190522",1);
        holidaymap.put("20190523",1);
        holidaymap.put("20190524",1);
        holidaymap.put("20190525",2);
        holidaymap.put("20190526",2);
        holidaymap.put("20190527",1);
        holidaymap.put("20190528",1);
        holidaymap.put("20190529",1);
        holidaymap.put("20190530",1);
        holidaymap.put("20190531",1);
        holidaymap.put("20190601",2);
        holidaymap.put("20190602",2);
        holidaymap.put("20190603",1);
        holidaymap.put("20190604",1);
        holidaymap.put("20190605",1);
        holidaymap.put("20190606",1);
        holidaymap.put("20190607",2);
        holidaymap.put("20190608",2);
        holidaymap.put("20190609",2);
        holidaymap.put("20190610",1);
        holidaymap.put("20190611",1);
        holidaymap.put("20190612",1);
        holidaymap.put("20190613",1);
        holidaymap.put("20190614",1);
        holidaymap.put("20190615",2);
        holidaymap.put("20190616",2);
        holidaymap.put("20190617",1);
        holidaymap.put("20190618",1);
        holidaymap.put("20190619",1);
        holidaymap.put("20190620",1);
        holidaymap.put("20190621",1);
        holidaymap.put("20190622",2);
        holidaymap.put("20190623",2);
        holidaymap.put("20190624",1);
        holidaymap.put("20190625",1);
        holidaymap.put("20190626",1);
        holidaymap.put("20190627",1);
        holidaymap.put("20190628",1);
        holidaymap.put("20190629",2);
        holidaymap.put("20190630",2);
        holidaymap.put("20190701",1);
        holidaymap.put("20190702",1);
        holidaymap.put("20190703",1);
        holidaymap.put("20190704",1);
        holidaymap.put("20190705",1);
        holidaymap.put("20190706",2);
        holidaymap.put("20190707",2);
        holidaymap.put("20190708",1);
        holidaymap.put("20190709",1);
        holidaymap.put("20190710",1);
        holidaymap.put("20190711",1);
        holidaymap.put("20190712",1);
        holidaymap.put("20190713",2);
        holidaymap.put("20190714",2);
        holidaymap.put("20190715",1);
        holidaymap.put("20190716",1);
        holidaymap.put("20190717",1);
        holidaymap.put("20190718",1);
        holidaymap.put("20190719",1);
        holidaymap.put("20190720",2);
        holidaymap.put("20190721",2);
        holidaymap.put("20190722",1);
        holidaymap.put("20190723",1);
        holidaymap.put("20190724",1);
        holidaymap.put("20190725",1);
        holidaymap.put("20190726",1);
        holidaymap.put("20190727",2);
        holidaymap.put("20190728",2);
        holidaymap.put("20190729",1);
        holidaymap.put("20190730",1);
        holidaymap.put("20190731",1);
        holidaymap.put("20190801",1);
        holidaymap.put("20190802",1);
        holidaymap.put("20190803",2);
        holidaymap.put("20190804",2);
        holidaymap.put("20190805",1);
        holidaymap.put("20190806",1);
        holidaymap.put("20190807",1);
        holidaymap.put("20190808",1);
        holidaymap.put("20190809",1);
        holidaymap.put("20190810",2);
        holidaymap.put("20190811",2);
        holidaymap.put("20190812",1);
        holidaymap.put("20190813",1);
        holidaymap.put("20190814",1);
        holidaymap.put("20190815",1);
        holidaymap.put("20190816",1);
        holidaymap.put("20190817",2);
        holidaymap.put("20190818",2);
        holidaymap.put("20190819",1);
        holidaymap.put("20190820",1);
        holidaymap.put("20190821",1);
        holidaymap.put("20190822",1);
        holidaymap.put("20190823",1);
        holidaymap.put("20190824",2);
        holidaymap.put("20190825",2);
        holidaymap.put("20190826",1);
        holidaymap.put("20190827",1);
        holidaymap.put("20190828",1);
        holidaymap.put("20190829",1);
        holidaymap.put("20190830",1);
        holidaymap.put("20190831",2);
        holidaymap.put("20190901",2);
        holidaymap.put("20190902",1);
        holidaymap.put("20190903",1);
        holidaymap.put("20190904",1);
        holidaymap.put("20190905",1);
        holidaymap.put("20190906",1);
        holidaymap.put("20190907",2);
        holidaymap.put("20190908",2);
        holidaymap.put("20190909",1);
        holidaymap.put("20190910",1);
        holidaymap.put("20190911",1);
        holidaymap.put("20190912",1);
        holidaymap.put("20190913",2);
        holidaymap.put("20190914",2);
        holidaymap.put("20190915",2);
        holidaymap.put("20190916",1);
        holidaymap.put("20190917",1);
        holidaymap.put("20190918",1);
        holidaymap.put("20190919",1);
        holidaymap.put("20190920",1);
        holidaymap.put("20190921",2);
        holidaymap.put("20190922",2);
        holidaymap.put("20190923",1);
        holidaymap.put("20190924",1);
        holidaymap.put("20190925",1);
        holidaymap.put("20190926",1);
        holidaymap.put("20190927",1);
        holidaymap.put("20190928",2);
        holidaymap.put("20190929",1);
        holidaymap.put("20190930",1);
        holidaymap.put("20191001",2);
        holidaymap.put("20191002",2);
        holidaymap.put("20191003",2);
        holidaymap.put("20191004",2);
        holidaymap.put("20191005",2);
        holidaymap.put("20191006",2);
        holidaymap.put("20191007",2);
        holidaymap.put("20191008",1);
        holidaymap.put("20191009",1);
        holidaymap.put("20191010",1);
        holidaymap.put("20191011",1);
        holidaymap.put("20191012",1);
        holidaymap.put("20191013",2);
        holidaymap.put("20191014",1);
        holidaymap.put("20191015",1);
        holidaymap.put("20191016",1);
        holidaymap.put("20191017",1);
        holidaymap.put("20191018",1);
        holidaymap.put("20191019",2);
        holidaymap.put("20191020",2);
        holidaymap.put("20191021",1);
        holidaymap.put("20191022",1);
        holidaymap.put("20191023",1);
        holidaymap.put("20191024",1);
        holidaymap.put("20191025",1);
        holidaymap.put("20191026",2);
        holidaymap.put("20191027",2);
        holidaymap.put("20191028",1);
        holidaymap.put("20191029",1);
        holidaymap.put("20191030",1);
        holidaymap.put("20191031",1);
        holidaymap.put("20191101",1);
        holidaymap.put("20191102",2);
        holidaymap.put("20191103",2);
        holidaymap.put("20191104",1);
        holidaymap.put("20191105",1);
        holidaymap.put("20191106",1);
        holidaymap.put("20191107",1);
        holidaymap.put("20191108",1);
        holidaymap.put("20191109",2);
        holidaymap.put("20191110",2);
        holidaymap.put("20191111",1);
        holidaymap.put("20191112",1);
        holidaymap.put("20191113",1);
        holidaymap.put("20191114",1);
        holidaymap.put("20191115",1);
        holidaymap.put("20191116",2);
        holidaymap.put("20191117",2);
        holidaymap.put("20191118",1);
        holidaymap.put("20191119",1);
        holidaymap.put("20191120",1);
        holidaymap.put("20191121",1);
        holidaymap.put("20191122",1);
        holidaymap.put("20191123",2);
        holidaymap.put("20191124",2);
        holidaymap.put("20191125",1);
        holidaymap.put("20191126",1);
        holidaymap.put("20191127",1);
        holidaymap.put("20191128",1);
        holidaymap.put("20191129",1);
        holidaymap.put("20191130",2);
        holidaymap.put("20191201",2);
        holidaymap.put("20191202",1);
        holidaymap.put("20191203",1);
        holidaymap.put("20191204",1);
        holidaymap.put("20191205",1);
        holidaymap.put("20191206",1);
        holidaymap.put("20191207",2);
        holidaymap.put("20191208",2);
        holidaymap.put("20191209",1);
        holidaymap.put("20191210",1);
        holidaymap.put("20191211",1);
        holidaymap.put("20191212",1);
        holidaymap.put("20191213",1);
        holidaymap.put("20191214",2);
        holidaymap.put("20191215",2);
        holidaymap.put("20191216",1);
        holidaymap.put("20191217",1);
        holidaymap.put("20191218",1);
        holidaymap.put("20191219",1);
        holidaymap.put("20191220",1);
        holidaymap.put("20191221",2);
        holidaymap.put("20191222",2);
        holidaymap.put("20191223",1);
        holidaymap.put("20191224",1);
        holidaymap.put("20191225",1);
        holidaymap.put("20191226",1);
        holidaymap.put("20191227",1);
        holidaymap.put("20191228",2);
        holidaymap.put("20191229",2);
        holidaymap.put("20191230",1);
        holidaymap.put("20191231",1);
        holidaymap.put("20200101",2);
        holidaymap.put("20200102",1);
        holidaymap.put("20200103",1);
        holidaymap.put("20200104",2);
        holidaymap.put("20200105",2);
        holidaymap.put("20200106",1);
        holidaymap.put("20200107",1);
        holidaymap.put("20200108",1);
        holidaymap.put("20200109",1);
        holidaymap.put("20200110",1);
        holidaymap.put("20200111",2);
        holidaymap.put("20200112",2);
        holidaymap.put("20200113",1);
        holidaymap.put("20200114",1);
        holidaymap.put("20200115",1);
        holidaymap.put("20200116",1);
        holidaymap.put("20200117",1);
        holidaymap.put("20200118",2);
        holidaymap.put("20200119",1);
        holidaymap.put("20200120",1);
        holidaymap.put("20200121",1);
        holidaymap.put("20200122",1);
        holidaymap.put("20200123",1);
        holidaymap.put("20200124",2);
        holidaymap.put("20200125",2);
        holidaymap.put("20200126",2);
        holidaymap.put("20200127",2);
        holidaymap.put("20200128",2);
        holidaymap.put("20200129",2);
        holidaymap.put("20200130",2);
        holidaymap.put("20200131",1);
        holidaymap.put("20200201",1);
        holidaymap.put("20200202",2);
        holidaymap.put("20200203",1);
        holidaymap.put("20200204",1);
        holidaymap.put("20200205",1);
        holidaymap.put("20200206",1);
        holidaymap.put("20200207",1);
        holidaymap.put("20200208",2);
        holidaymap.put("20200209",2);
        holidaymap.put("20200210",1);
        holidaymap.put("20200211",1);
        holidaymap.put("20200212",1);
        holidaymap.put("20200213",1);
        holidaymap.put("20200214",1);
        holidaymap.put("20200215",2);
        holidaymap.put("20200216",2);
        holidaymap.put("20200217",1);
        holidaymap.put("20200218",1);
        holidaymap.put("20200219",1);
        holidaymap.put("20200220",1);
        holidaymap.put("20200221",1);
        holidaymap.put("20200222",2);
        holidaymap.put("20200223",2);
        holidaymap.put("20200224",1);
        holidaymap.put("20200225",1);
        holidaymap.put("20200226",1);
        holidaymap.put("20200227",1);
        holidaymap.put("20200228",1);
        holidaymap.put("20200229",2);
        holidaymap.put("20200301",2);
        holidaymap.put("20200302",1);
        holidaymap.put("20200303",1);
        holidaymap.put("20200304",1);
        holidaymap.put("20200305",1);
        holidaymap.put("20200306",1);
        holidaymap.put("20200307",2);
        holidaymap.put("20200308",2);
        holidaymap.put("20200309",1);
        holidaymap.put("20200310",1);
        holidaymap.put("20200311",1);
        holidaymap.put("20200312",1);
        holidaymap.put("20200313",1);
        holidaymap.put("20200314",2);
        holidaymap.put("20200315",2);
        holidaymap.put("20200316",1);
        holidaymap.put("20200317",1);
        holidaymap.put("20200318",1);
        holidaymap.put("20200319",1);
        holidaymap.put("20200320",1);
        holidaymap.put("20200321",2);
        holidaymap.put("20200322",2);
        holidaymap.put("20200323",1);
        holidaymap.put("20200324",1);
        holidaymap.put("20200325",1);
        holidaymap.put("20200326",1);
        holidaymap.put("20200327",1);
        holidaymap.put("20200328",2);
        holidaymap.put("20200329",2);
        holidaymap.put("20200330",1);
        holidaymap.put("20200331",1);
        holidaymap.put("20200401",1);
        holidaymap.put("20200402",1);
        holidaymap.put("20200403",1);
        holidaymap.put("20200404",2);
        holidaymap.put("20200405",2);
        holidaymap.put("20200406",2);
        holidaymap.put("20200407",1);
        holidaymap.put("20200408",1);
        holidaymap.put("20200409",1);
        holidaymap.put("20200410",1);
        holidaymap.put("20200411",2);
        holidaymap.put("20200412",2);
        holidaymap.put("20200413",1);
        holidaymap.put("20200414",1);
        holidaymap.put("20200415",1);
        holidaymap.put("20200416",1);
        holidaymap.put("20200417",1);
        holidaymap.put("20200418",2);
        holidaymap.put("20200419",2);
        holidaymap.put("20200420",1);
        holidaymap.put("20200421",1);
        holidaymap.put("20200422",1);
        holidaymap.put("20200423",1);
        holidaymap.put("20200424",1);
        holidaymap.put("20200425",2);
        holidaymap.put("20200426",1);
        holidaymap.put("20200427",1);
        holidaymap.put("20200428",1);
        holidaymap.put("20200429",1);
        holidaymap.put("20200430",1);
        holidaymap.put("20200501",2);
        holidaymap.put("20200502",2);
        holidaymap.put("20200503",2);
        holidaymap.put("20200504",2);
        holidaymap.put("20200505",2);
        holidaymap.put("20200506",1);
        holidaymap.put("20200507",1);
        holidaymap.put("20200508",1);
        holidaymap.put("20200509",1);
        holidaymap.put("20200510",2);
        holidaymap.put("20200511",1);
        holidaymap.put("20200512",1);
        holidaymap.put("20200513",1);
        holidaymap.put("20200514",1);
        holidaymap.put("20200515",1);
        holidaymap.put("20200516",2);
        holidaymap.put("20200517",2);
        holidaymap.put("20200518",1);
        holidaymap.put("20200519",1);
        holidaymap.put("20200520",1);
        holidaymap.put("20200521",1);
        holidaymap.put("20200522",1);
        holidaymap.put("20200523",2);
        holidaymap.put("20200524",2);
        holidaymap.put("20200525",1);
        holidaymap.put("20200526",1);
        holidaymap.put("20200527",1);
        holidaymap.put("20200528",1);
        holidaymap.put("20200529",1);
        holidaymap.put("20200530",2);
        holidaymap.put("20200531",2);
        holidaymap.put("20200601",1);
        holidaymap.put("20200602",1);
        holidaymap.put("20200603",1);
        holidaymap.put("20200604",1);
        holidaymap.put("20200605",1);
        holidaymap.put("20200606",2);
        holidaymap.put("20200607",2);
        holidaymap.put("20200608",1);
        holidaymap.put("20200609",1);
        holidaymap.put("20200610",1);
        holidaymap.put("20200611",1);
        holidaymap.put("20200612",1);
        holidaymap.put("20200613",2);
        holidaymap.put("20200614",2);
        holidaymap.put("20200615",1);
        holidaymap.put("20200616",1);
        holidaymap.put("20200617",1);
        holidaymap.put("20200618",1);
        holidaymap.put("20200619",1);
        holidaymap.put("20200620",2);
        holidaymap.put("20200621",2);
        holidaymap.put("20200622",1);
        holidaymap.put("20200623",1);
        holidaymap.put("20200624",1);
        holidaymap.put("20200625",2);
        holidaymap.put("20200626",2);
        holidaymap.put("20200627",2);
        holidaymap.put("20200628",1);
        holidaymap.put("20200629",1);
        holidaymap.put("20200630",1);
        holidaymap.put("20200701",1);
        holidaymap.put("20200702",1);
        holidaymap.put("20200703",1);
        holidaymap.put("20200704",2);
        holidaymap.put("20200705",2);
        holidaymap.put("20200706",1);
        holidaymap.put("20200707",1);
        holidaymap.put("20200708",1);
        holidaymap.put("20200709",1);
        holidaymap.put("20200710",1);
        holidaymap.put("20200711",2);
        holidaymap.put("20200712",2);
        holidaymap.put("20200713",1);
        holidaymap.put("20200714",1);
        holidaymap.put("20200715",1);
        holidaymap.put("20200716",1);
        holidaymap.put("20200717",1);
        holidaymap.put("20200718",2);
        holidaymap.put("20200719",2);
        holidaymap.put("20200720",1);
        holidaymap.put("20200721",1);
        holidaymap.put("20200722",1);
        holidaymap.put("20200723",1);
        holidaymap.put("20200724",1);
        holidaymap.put("20200725",2);
        holidaymap.put("20200726",2);
        holidaymap.put("20200727",1);
        holidaymap.put("20200728",1);
        holidaymap.put("20200729",1);
        holidaymap.put("20200730",1);
        holidaymap.put("20200731",1);
        holidaymap.put("20200801",2);
        holidaymap.put("20200802",2);
        holidaymap.put("20200803",1);
        holidaymap.put("20200804",1);
        holidaymap.put("20200805",1);
        holidaymap.put("20200806",1);
        holidaymap.put("20200807",1);
        holidaymap.put("20200808",2);
        holidaymap.put("20200809",2);
        holidaymap.put("20200810",1);
        holidaymap.put("20200811",1);
        holidaymap.put("20200812",1);
        holidaymap.put("20200813",1);
        holidaymap.put("20200814",1);
        holidaymap.put("20200815",2);
        holidaymap.put("20200816",2);
        holidaymap.put("20200817",1);
        holidaymap.put("20200818",1);
        holidaymap.put("20200819",1);
        holidaymap.put("20200820",1);
        holidaymap.put("20200821",1);
        holidaymap.put("20200822",2);
        holidaymap.put("20200823",2);
        holidaymap.put("20200824",1);
        holidaymap.put("20200825",1);
        holidaymap.put("20200826",1);
        holidaymap.put("20200827",1);
        holidaymap.put("20200828",1);
        holidaymap.put("20200829",2);
        holidaymap.put("20200830",2);
        holidaymap.put("20200831",1);
        holidaymap.put("20200901",1);
        holidaymap.put("20200902",1);
        holidaymap.put("20200903",1);
        holidaymap.put("20200904",1);
        holidaymap.put("20200905",2);
        holidaymap.put("20200906",2);
        holidaymap.put("20200907",1);
        holidaymap.put("20200908",1);
        holidaymap.put("20200909",1);
        holidaymap.put("20200910",1);
        holidaymap.put("20200911",1);
        holidaymap.put("20200912",2);
        holidaymap.put("20200913",2);
        holidaymap.put("20200914",1);
        holidaymap.put("20200915",1);
        holidaymap.put("20200916",1);
        holidaymap.put("20200917",1);
        holidaymap.put("20200918",1);
        holidaymap.put("20200919",2);
        holidaymap.put("20200920",2);
        holidaymap.put("20200921",1);
        holidaymap.put("20200922",1);
        holidaymap.put("20200923",1);
        holidaymap.put("20200924",1);
        holidaymap.put("20200925",1);
        holidaymap.put("20200926",2);
        holidaymap.put("20200927",1);
        holidaymap.put("20200928",1);
        holidaymap.put("20200929",1);
        holidaymap.put("20200930",1);
        holidaymap.put("20201001",2);
        holidaymap.put("20201002",2);
        holidaymap.put("20201003",2);
        holidaymap.put("20201004",2);
        holidaymap.put("20201005",2);
        holidaymap.put("20201006",2);
        holidaymap.put("20201007",2);
        holidaymap.put("20201008",2);
        holidaymap.put("20201009",1);
        holidaymap.put("20201010",1);
        holidaymap.put("20201011",2);
        holidaymap.put("20201012",1);
        holidaymap.put("20201013",1);
        holidaymap.put("20201014",1);
        holidaymap.put("20201015",1);
        holidaymap.put("20201016",1);
        holidaymap.put("20201017",2);
        holidaymap.put("20201018",2);
        holidaymap.put("20201019",1);
        holidaymap.put("20201020",1);
        holidaymap.put("20201021",1);
        holidaymap.put("20201022",1);
        holidaymap.put("20201023",1);
        holidaymap.put("20201024",2);
        holidaymap.put("20201025",2);
        holidaymap.put("20201026",1);
        holidaymap.put("20201027",1);
        holidaymap.put("20201028",1);
        holidaymap.put("20201029",1);
        holidaymap.put("20201030",1);
        holidaymap.put("20201031",2);
        holidaymap.put("20201101",2);
        holidaymap.put("20201102",1);
        holidaymap.put("20201103",1);
        holidaymap.put("20201104",1);
        holidaymap.put("20201105",1);
        holidaymap.put("20201106",1);
        holidaymap.put("20201107",2);
        holidaymap.put("20201108",2);
        holidaymap.put("20201109",1);
        holidaymap.put("20201110",1);
        holidaymap.put("20201111",1);
        holidaymap.put("20201112",1);
        holidaymap.put("20201113",1);
        holidaymap.put("20201114",2);
        holidaymap.put("20201115",2);
        holidaymap.put("20201116",1);
        holidaymap.put("20201117",1);
        holidaymap.put("20201118",1);
        holidaymap.put("20201119",1);
        holidaymap.put("20201120",1);
        holidaymap.put("20201121",2);
        holidaymap.put("20201122",2);
        holidaymap.put("20201123",1);
        holidaymap.put("20201124",1);
        holidaymap.put("20201125",1);
        holidaymap.put("20201126",1);
        holidaymap.put("20201127",1);
        holidaymap.put("20201128",2);
        holidaymap.put("20201129",2);
        holidaymap.put("20201130",1);
        holidaymap.put("20201201",1);
        holidaymap.put("20201202",1);
        holidaymap.put("20201203",1);
        holidaymap.put("20201204",1);
        holidaymap.put("20201205",2);
        holidaymap.put("20201206",2);
        holidaymap.put("20201207",1);
        holidaymap.put("20201208",1);
        holidaymap.put("20201209",1);
        holidaymap.put("20201210",1);
        holidaymap.put("20201211",1);
        holidaymap.put("20201212",2);
        holidaymap.put("20201213",2);
        holidaymap.put("20201214",1);
        holidaymap.put("20201215",1);
        holidaymap.put("20201216",1);
        holidaymap.put("20201217",1);
        holidaymap.put("20201218",1);
        holidaymap.put("20201219",2);
        holidaymap.put("20201220",2);
        holidaymap.put("20201221",1);
        holidaymap.put("20201222",1);
        holidaymap.put("20201223",1);
        holidaymap.put("20201224",1);
        holidaymap.put("20201225",1);
        holidaymap.put("20201226",2);
        holidaymap.put("20201227",2);
        holidaymap.put("20201228",1);
        holidaymap.put("20201229",1);
        holidaymap.put("20201230",1);
        holidaymap.put("20201231",1);
    }


    public static Integer getHolidayData(String holidayDateStr) {
        Integer dateTypeNo = (Integer) holidaymap.get(holidayDateStr);
        return dateTypeNo;
    }

    /**
     * @param httpArg
     *            :参数
     * @return 返回结果
     */
    public static String request(String httpArg) {
        String httpUrl = "http://tool.bitefu.net/jiari/";
        BufferedReader reader = null;
        String result = null;
        StringBuffer sbf = new StringBuffer();
        httpUrl = httpUrl + "?d=" +httpArg;
        try {
            URL url = new URL(httpUrl);
            HttpURLConnection connection = (HttpURLConnection) url
                    .openConnection();
            connection.setRequestMethod("GET");
            connection.connect();
            InputStream is = connection.getInputStream();
            reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
            String strRead = null;
            while ((strRead = reader.readLine()) != null) {
                sbf.append(strRead);
            }
            reader.close();
            result = sbf.toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }

    public static void main(String[] args) {
        // 处理节假日
        String httpArg = "20200406";
		/*SimpleDateFormat f = new SimpleDateFormat("yyyyMMdd");
		httpArg = f.format(new Date());*/
        String jsonResult = HolidayUtil.request(httpArg);
        // 0 上班  1周末 2节假日
        if ("0".equals(jsonResult)) {
            //return resultObject.getFailResult("上班");
            System.out.println("0上班");
        }
        if ("1".equals(jsonResult)) {
            //return resultObject.getFailResult("1周末");
            System.out.println("1周末");
        }
        if ("2".equals(jsonResult)) {
            //return resultObject.getFailResult("");
            System.out.println("2节假日");
        }
    }
}